{plugins, [
    {pc, ".*", {git, "https://gitee.com/wuhuidong/port_compiler.git", {tag, "v1.12.0"}}}
]}.

{provider_hooks, [
    {pre, [{compile, {pc, compile}}, {clean, {pc, clean}}]}
]}.

{port_env, [{"linux|darwin", "CFLAGS", "$CFLAGS -O2"}]}.

{port_specs, [
    {"linux|darwin", "priv/x_nav.so", ["c_src/x_nav.cpp", "c_src/stack_pool.c", "c_src/navmesh.cpp", "c_src/Detour/Source/*.cpp"],
        [{env, [{"CXXFLAGS", "$CXXFLAGS -O2 -I'c_src/Detour/Include' "}, {"LDFLAGS", " -lstdc++ "}]}]},
    {"win32", "priv/x_nav.dll", ["c_src/x_nav.cpp", "c_src/stack_pool.c", "c_src/navmesh.cpp", "c_src/Detour/Source/*.cpp"],
        [{env, [{"CXXFLAGS", "/Ox /fp:fast  -I\"c_src\\Detour\\Include\" "}]}]}
]}.